package com.it;


//医生类，也是子类
public class Doctor extends Person {
    String title;

    //无参构造
    public Doctor() {
    }

    //全参构造
    public Doctor(String name, int age, String address, String title) {
        super(name, age, address);
        this.title = title;
    }


    void cut() {
        System.out.println(name + "正在做手术。。。");
    }
}
